﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MensUnoShop.Models
{
    [Serializable]
    public class Recipient
    {
        private Guid _rcguid;
        private string _name;
        private string _tel;
        private string _zip;
        private string _country;
        private string _city;
        private string _area;
        private string _address;
        private string _customer;
        private bool _sex;
        [NonSerialized]
        private DBOrder _repository;

        public Guid REGUID { set { _rcguid = value; } get { return _rcguid; } }
        public string NAME { set { _name = value; } get { return _name; } }
        public string TEL { set { _tel = value; } get { return _tel; } }
        public bool SEX { set { _sex = value; } get { return _sex; } }
        public string COUNTRY { set { _country = value; } get { return _country; } }
        public string ZIP { set { _zip = value; } get { return _zip; } }
        public string CITY { set { _city = value; } get { return _city; } }
        public string AREA { set { _area = value; } get { return _area; } }
        public string ADDRESS { set { _address = value; } get { return _address; } }
        public string CUSTOMER { set { _customer = value; } get { return _customer; } }

        public Recipient(Guid oguid) {
            _rcguid = oguid;
            _repository = new DBOrder();
        }

        /// <summary>
        /// 存入收件者備忘錄
        /// </summary>
        /// <param name="_mguid"></param>
        public void Save(Guid _mguid) { }
    }
}
